package sza.oracle.apps.ap.oie.traveExp.server;

import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.framework.server.OAEntityDefImpl;
import oracle.apps.fnd.framework.server.OAEntityImpl;

import oracle.jbo.AttributeList;
import oracle.jbo.Key;
import oracle.jbo.domain.Date;
import oracle.jbo.domain.Number;
import oracle.jbo.server.AttributeDefImpl;
import oracle.jbo.server.EntityDefImpl;
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class SzaOieTravelDetailTImpl extends OAEntityImpl {
    public static final int TRAVELDETAILID = 0;
    public static final int REPORTHEADERID = 1;
    public static final int EXPENSETYPE = 2;
    public static final int STARTDATE = 3;
    public static final int RETURNDATE = 4;
    public static final int RETURNTIME = 5;
    public static final int TRAVELSITELEVEL = 6;
    public static final int TRAVELSITENAME = 7;
    public static final int TRAVELDAYS = 8;
    public static final int TRAVELERNAMES = 9;
    public static final int TRAVELERLEVEL = 10;
    public static final int TRAVELERSEX = 11;
    public static final int TRAVELERCOUNT = 12;
    public static final int ATTRIBUTE1 = 13;
    public static final int ATTRIBUTE2 = 14;
    public static final int ATTRIBUTE3 = 15;
    public static final int ATTRIBUTE4 = 16;
    public static final int ATTRIBUTE5 = 17;
    public static final int ATTRIBUTE6 = 18;
    public static final int ATTRIBUTE7 = 19;
    public static final int ATTRIBUTE8 = 20;
    public static final int ATTRIBUTE9 = 21;
    public static final int ATTRIBUTE10 = 22;
    public static final int ATTRIBUTE11 = 23;
    public static final int ATTRIBUTE12 = 24;
    public static final int ATTRIBUTE13 = 25;
    public static final int ATTRIBUTE14 = 26;
    public static final int ATTRIBUTE15 = 27;
    private static OAEntityDefImpl mDefinitionObject;

    /**This is the default constructor (do not remove)
     */
    public SzaOieTravelDetailTImpl() {
    }

    /**Retrieves the definition object for this instance class.
     */
    public static synchronized EntityDefImpl getDefinitionObject() {
        if (mDefinitionObject == null) {
            mDefinitionObject = 
                    (OAEntityDefImpl)EntityDefImpl.findDefObject("sza.oracle.apps.ap.oie.traveExp.server.SzaOieTravelDetailT");
        }
        return mDefinitionObject;
    }

    /**Add attribute defaulting logic in this method.
     */
    public void create(AttributeList attributeList) {
        super.create(attributeList);
        OADBTransaction transaction = getOADBTransaction();
        Number seqId = transaction.getSequenceValue("SZA.SZA_OIE_TRAVEL_DETAIL_S");
        this.setTravelDetailId(seqId);
    }

    /**Add entity remove logic in this method.
     */
    public void remove() {
        super.remove();
    }

    /**Add Entity validation code in this method.
     */
    protected void validateEntity() {
        super.validateEntity();
    }

    /**Gets the attribute value for TravelDetailId, using the alias name TravelDetailId
     */
    public Number getTravelDetailId() {
        return (Number)getAttributeInternal(TRAVELDETAILID);
    }

    /**Sets <code>value</code> as the attribute value for TravelDetailId
     */
    public void setTravelDetailId(Number value) {
        setAttributeInternal(TRAVELDETAILID, value);
    }

    /**Gets the attribute value for ReportHeaderId, using the alias name ReportHeaderId
     */
    public Number getReportHeaderId() {
        return (Number)getAttributeInternal(REPORTHEADERID);
    }

    /**Sets <code>value</code> as the attribute value for ReportHeaderId
     */
    public void setReportHeaderId(Number value) {
        setAttributeInternal(REPORTHEADERID, value);
    }

    /**Gets the attribute value for ExpenseType, using the alias name ExpenseType
     */
    public String getExpenseType() {
        return (String)getAttributeInternal(EXPENSETYPE);
    }

    /**Sets <code>value</code> as the attribute value for ExpenseType
     */
    public void setExpenseType(String value) {
        setAttributeInternal(EXPENSETYPE, value);
    }

    /**Gets the attribute value for StartDate, using the alias name StartDate
     */
    public Date getStartDate() {
        return (Date)getAttributeInternal(STARTDATE);
    }

    /**Sets <code>value</code> as the attribute value for StartDate
     */
    public void setStartDate(Date value) {
        setAttributeInternal(STARTDATE, value);
    }

    /**Gets the attribute value for ReturnDate, using the alias name ReturnDate
     */
    public Date getReturnDate() {
        return (Date)getAttributeInternal(RETURNDATE);
    }

    /**Sets <code>value</code> as the attribute value for ReturnDate
     */
    public void setReturnDate(Date value) {
        setAttributeInternal(RETURNDATE, value);
    }

    /**Gets the attribute value for ReturnTime, using the alias name ReturnTime
     */
    public String getReturnTime() {
        return (String)getAttributeInternal(RETURNTIME);
    }

    /**Sets <code>value</code> as the attribute value for ReturnTime
     */
    public void setReturnTime(String value) {
        setAttributeInternal(RETURNTIME, value);
    }

    /**Gets the attribute value for TravelSiteLevel, using the alias name TravelSiteLevel
     */
    public String getTravelSiteLevel() {
        return (String)getAttributeInternal(TRAVELSITELEVEL);
    }

    /**Sets <code>value</code> as the attribute value for TravelSiteLevel
     */
    public void setTravelSiteLevel(String value) {
        setAttributeInternal(TRAVELSITELEVEL, value);
    }

    /**Gets the attribute value for TravelSiteName, using the alias name TravelSiteName
     */
    public String getTravelSiteName() {
        return (String)getAttributeInternal(TRAVELSITENAME);
    }

    /**Sets <code>value</code> as the attribute value for TravelSiteName
     */
    public void setTravelSiteName(String value) {
        setAttributeInternal(TRAVELSITENAME, value);
    }

    /**Gets the attribute value for TravelDays, using the alias name TravelDays
     */
    public Number getTravelDays() {
        return (Number)getAttributeInternal(TRAVELDAYS);
    }

    /**Sets <code>value</code> as the attribute value for TravelDays
     */
    public void setTravelDays(Number value) {
        setAttributeInternal(TRAVELDAYS, value);
    }

    /**Gets the attribute value for TravelerNames, using the alias name TravelerNames
     */
    public String getTravelerNames() {
        return (String)getAttributeInternal(TRAVELERNAMES);
    }

    /**Sets <code>value</code> as the attribute value for TravelerNames
     */
    public void setTravelerNames(String value) {
        setAttributeInternal(TRAVELERNAMES, value);
    }

    /**Gets the attribute value for TravelerLevel, using the alias name TravelerLevel
     */
    public Number getTravelerLevel() {
        return (Number)getAttributeInternal(TRAVELERLEVEL);
    }

    /**Sets <code>value</code> as the attribute value for TravelerLevel
     */
    public void setTravelerLevel(Number value) {
        setAttributeInternal(TRAVELERLEVEL, value);
    }

    /**Gets the attribute value for TravelerSex, using the alias name TravelerSex
     */
    public String getTravelerSex() {
        return (String)getAttributeInternal(TRAVELERSEX);
    }

    /**Sets <code>value</code> as the attribute value for TravelerSex
     */
    public void setTravelerSex(String value) {
        setAttributeInternal(TRAVELERSEX, value);
    }

    /**Gets the attribute value for TravelerCount, using the alias name TravelerCount
     */
    public Number getTravelerCount() {
        return (Number)getAttributeInternal(TRAVELERCOUNT);
    }

    /**Sets <code>value</code> as the attribute value for TravelerCount
     */
    public void setTravelerCount(Number value) {
        setAttributeInternal(TRAVELERCOUNT, value);
    }

    /**Gets the attribute value for Attribute1, using the alias name Attribute1
     */
    public String getAttribute1() {
        return (String)getAttributeInternal(ATTRIBUTE1);
    }

    /**Sets <code>value</code> as the attribute value for Attribute1
     */
    public void setAttribute1(String value) {
        setAttributeInternal(ATTRIBUTE1, value);
    }

    /**Gets the attribute value for Attribute2, using the alias name Attribute2
     */
    public String getAttribute2() {
        return (String)getAttributeInternal(ATTRIBUTE2);
    }

    /**Sets <code>value</code> as the attribute value for Attribute2
     */
    public void setAttribute2(String value) {
        setAttributeInternal(ATTRIBUTE2, value);
    }

    /**Gets the attribute value for Attribute3, using the alias name Attribute3
     */
    public String getAttribute3() {
        return (String)getAttributeInternal(ATTRIBUTE3);
    }

    /**Sets <code>value</code> as the attribute value for Attribute3
     */
    public void setAttribute3(String value) {
        setAttributeInternal(ATTRIBUTE3, value);
    }

    /**Gets the attribute value for Attribute4, using the alias name Attribute4
     */
    public String getAttribute4() {
        return (String)getAttributeInternal(ATTRIBUTE4);
    }

    /**Sets <code>value</code> as the attribute value for Attribute4
     */
    public void setAttribute4(String value) {
        setAttributeInternal(ATTRIBUTE4, value);
    }

    /**Gets the attribute value for Attribute5, using the alias name Attribute5
     */
    public String getAttribute5() {
        return (String)getAttributeInternal(ATTRIBUTE5);
    }

    /**Sets <code>value</code> as the attribute value for Attribute5
     */
    public void setAttribute5(String value) {
        setAttributeInternal(ATTRIBUTE5, value);
    }

    /**Gets the attribute value for Attribute6, using the alias name Attribute6
     */
    public String getAttribute6() {
        return (String)getAttributeInternal(ATTRIBUTE6);
    }

    /**Sets <code>value</code> as the attribute value for Attribute6
     */
    public void setAttribute6(String value) {
        setAttributeInternal(ATTRIBUTE6, value);
    }

    /**Gets the attribute value for Attribute7, using the alias name Attribute7
     */
    public String getAttribute7() {
        return (String)getAttributeInternal(ATTRIBUTE7);
    }

    /**Sets <code>value</code> as the attribute value for Attribute7
     */
    public void setAttribute7(String value) {
        setAttributeInternal(ATTRIBUTE7, value);
    }

    /**Gets the attribute value for Attribute8, using the alias name Attribute8
     */
    public String getAttribute8() {
        return (String)getAttributeInternal(ATTRIBUTE8);
    }

    /**Sets <code>value</code> as the attribute value for Attribute8
     */
    public void setAttribute8(String value) {
        setAttributeInternal(ATTRIBUTE8, value);
    }

    /**Gets the attribute value for Attribute9, using the alias name Attribute9
     */
    public String getAttribute9() {
        return (String)getAttributeInternal(ATTRIBUTE9);
    }

    /**Sets <code>value</code> as the attribute value for Attribute9
     */
    public void setAttribute9(String value) {
        setAttributeInternal(ATTRIBUTE9, value);
    }

    /**Gets the attribute value for Attribute10, using the alias name Attribute10
     */
    public String getAttribute10() {
        return (String)getAttributeInternal(ATTRIBUTE10);
    }

    /**Sets <code>value</code> as the attribute value for Attribute10
     */
    public void setAttribute10(String value) {
        setAttributeInternal(ATTRIBUTE10, value);
    }

    /**Gets the attribute value for Attribute11, using the alias name Attribute11
     */
    public String getAttribute11() {
        return (String)getAttributeInternal(ATTRIBUTE11);
    }

    /**Sets <code>value</code> as the attribute value for Attribute11
     */
    public void setAttribute11(String value) {
        setAttributeInternal(ATTRIBUTE11, value);
    }

    /**Gets the attribute value for Attribute12, using the alias name Attribute12
     */
    public String getAttribute12() {
        return (String)getAttributeInternal(ATTRIBUTE12);
    }

    /**Sets <code>value</code> as the attribute value for Attribute12
     */
    public void setAttribute12(String value) {
        setAttributeInternal(ATTRIBUTE12, value);
    }

    /**Gets the attribute value for Attribute13, using the alias name Attribute13
     */
    public String getAttribute13() {
        return (String)getAttributeInternal(ATTRIBUTE13);
    }

    /**Sets <code>value</code> as the attribute value for Attribute13
     */
    public void setAttribute13(String value) {
        setAttributeInternal(ATTRIBUTE13, value);
    }

    /**Gets the attribute value for Attribute14, using the alias name Attribute14
     */
    public String getAttribute14() {
        return (String)getAttributeInternal(ATTRIBUTE14);
    }

    /**Sets <code>value</code> as the attribute value for Attribute14
     */
    public void setAttribute14(String value) {
        setAttributeInternal(ATTRIBUTE14, value);
    }

    /**Gets the attribute value for Attribute15, using the alias name Attribute15
     */
    public String getAttribute15() {
        return (String)getAttributeInternal(ATTRIBUTE15);
    }

    /**Sets <code>value</code> as the attribute value for Attribute15
     */
    public void setAttribute15(String value) {
        setAttributeInternal(ATTRIBUTE15, value);
    }

    /**getAttrInvokeAccessor: generated method. Do not modify.
     */
    protected Object getAttrInvokeAccessor(int index, 
                                           AttributeDefImpl attrDef) throws Exception {
        switch (index) {
        case TRAVELDETAILID:
            return getTravelDetailId();
        case REPORTHEADERID:
            return getReportHeaderId();
        case EXPENSETYPE:
            return getExpenseType();
        case STARTDATE:
            return getStartDate();
        case RETURNDATE:
            return getReturnDate();
        case RETURNTIME:
            return getReturnTime();
        case TRAVELSITELEVEL:
            return getTravelSiteLevel();
        case TRAVELSITENAME:
            return getTravelSiteName();
        case TRAVELDAYS:
            return getTravelDays();
        case TRAVELERNAMES:
            return getTravelerNames();
        case TRAVELERLEVEL:
            return getTravelerLevel();
        case TRAVELERSEX:
            return getTravelerSex();
        case TRAVELERCOUNT:
            return getTravelerCount();
        case ATTRIBUTE1:
            return getAttribute1();
        case ATTRIBUTE2:
            return getAttribute2();
        case ATTRIBUTE3:
            return getAttribute3();
        case ATTRIBUTE4:
            return getAttribute4();
        case ATTRIBUTE5:
            return getAttribute5();
        case ATTRIBUTE6:
            return getAttribute6();
        case ATTRIBUTE7:
            return getAttribute7();
        case ATTRIBUTE8:
            return getAttribute8();
        case ATTRIBUTE9:
            return getAttribute9();
        case ATTRIBUTE10:
            return getAttribute10();
        case ATTRIBUTE11:
            return getAttribute11();
        case ATTRIBUTE12:
            return getAttribute12();
        case ATTRIBUTE13:
            return getAttribute13();
        case ATTRIBUTE14:
            return getAttribute14();
        case ATTRIBUTE15:
            return getAttribute15();
        default:
            return super.getAttrInvokeAccessor(index, attrDef);
        }
    }

    /**setAttrInvokeAccessor: generated method. Do not modify.
     */
    protected void setAttrInvokeAccessor(int index, Object value, 
                                         AttributeDefImpl attrDef) throws Exception {
        switch (index) {
        case TRAVELDETAILID:
            setTravelDetailId((Number)value);
            return;
        case REPORTHEADERID:
            setReportHeaderId((Number)value);
            return;
        case EXPENSETYPE:
            setExpenseType((String)value);
            return;
        case STARTDATE:
            setStartDate((Date)value);
            return;
        case RETURNDATE:
            setReturnDate((Date)value);
            return;
        case RETURNTIME:
            setReturnTime((String)value);
            return;
        case TRAVELSITELEVEL:
            setTravelSiteLevel((String)value);
            return;
        case TRAVELSITENAME:
            setTravelSiteName((String)value);
            return;
        case TRAVELDAYS:
            setTravelDays((Number)value);
            return;
        case TRAVELERNAMES:
            setTravelerNames((String)value);
            return;
        case TRAVELERLEVEL:
            setTravelerLevel((Number)value);
            return;
        case TRAVELERSEX:
            setTravelerSex((String)value);
            return;
        case TRAVELERCOUNT:
            setTravelerCount((Number)value);
            return;
        case ATTRIBUTE1:
            setAttribute1((String)value);
            return;
        case ATTRIBUTE2:
            setAttribute2((String)value);
            return;
        case ATTRIBUTE3:
            setAttribute3((String)value);
            return;
        case ATTRIBUTE4:
            setAttribute4((String)value);
            return;
        case ATTRIBUTE5:
            setAttribute5((String)value);
            return;
        case ATTRIBUTE6:
            setAttribute6((String)value);
            return;
        case ATTRIBUTE7:
            setAttribute7((String)value);
            return;
        case ATTRIBUTE8:
            setAttribute8((String)value);
            return;
        case ATTRIBUTE9:
            setAttribute9((String)value);
            return;
        case ATTRIBUTE10:
            setAttribute10((String)value);
            return;
        case ATTRIBUTE11:
            setAttribute11((String)value);
            return;
        case ATTRIBUTE12:
            setAttribute12((String)value);
            return;
        case ATTRIBUTE13:
            setAttribute13((String)value);
            return;
        case ATTRIBUTE14:
            setAttribute14((String)value);
            return;
        case ATTRIBUTE15:
            setAttribute15((String)value);
            return;
        default:
            super.setAttrInvokeAccessor(index, value, attrDef);
            return;
        }
    }

    /**Creates a Key object based on given key constituents
     */
    public static Key createPrimaryKey(Number travelDetailId) {
        return new Key(new Object[]{travelDetailId});
    }

    public void setCreationDate(Date date) {
    }

    public void setCreatedBy(Number number) {
    }

    public void setLastUpdateDate(Date date) {
    }

    public void setLastUpdatedBy(Number number) {
    }

    public void setLastUpdateLogin(Number number) {
    }
}
